//
//  AnimalFactory.m
//  SimpleFactoryMethod
//
//  Created by mobao on 16/3/29.
//  Copyright © 2016年 mobao. All rights reserved.
//

#import "AnimalFactory.h"



@implementation AnimalFactory

+(Dog*)createDog{
    Dog *dog = [[Dog alloc]init];
    dog.name = @"uzi";
    return dog;
}

+(Cat*)createCat{
    Cat *cat = [[Cat alloc]init];
    cat.name = @"ling";
    return cat;
}


@end
